package org.ws.task.netty;

import io.netty.channel.ChannelHandlerContext;
import org.ws.task.exception.RequestHandlerException;
import org.ws.task.model.protocol.base.RequestAction;
import org.ws.task.model.protocol.base.RequestMessage;
import org.ws.task.model.protocol.base.ResponseMessage;

public interface RequestActionHandler<I,O> {

    RequestAction action();

    ResponseMessage<O> handler(ChannelHandlerContext ctx, RequestMessage<I> requestMessage)throws RequestHandlerException;

}
